<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        label input{display: none;}
        label input :checked + div {background-position: 0 0 ;}
        div {width: 25px; height: 25px; background: url('./复选框.png' ) 0 -25px;}
    </style>
</head>
<body>
    <label>
        <input type="checkbox">
        <div></div>
    </label>
</body>
</html>